package cn.edu.niit.alienlab.jshttplessonserver.service;

import cn.edu.niit.alienlab.jshttplessonserver.dao.MovieRatingDao;
import cn.edu.niit.alienlab.jshttplessonserver.domain.MovieRatings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class MovieRatingsService {

    @Autowired
    MovieRatingDao movieRatingDao;

    public List<MovieRatings> selectRatingsByMovieId(Integer movie_id){
        List<MovieRatings> list = new ArrayList<>();
        list = movieRatingDao.selectRatingsByMovieId(movie_id);
        return list;
    }

}
